package com.gxa.weixing.core.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;


/**
 * @author lijianmin
 * @date 2022/01/06  19:05:38
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GoodsListVO {

    /**
     * 商品编号
     */
    @ExcelProperty(value = "商品编号", index = 0)
    private Long id;

    /**
     * 商品名称
     */
    @ExcelProperty(value = "商品名称", index = 1)
    private String name;

    /**
     * 销售价格(元)
     */
    @ExcelProperty(value = "销售价格(元)", index = 2)
    private BigDecimal price;

    /**
     * 供应商
     */
    @ExcelProperty(value = "供应商", index = 3)
    private String supplierName;

    /**
     * 商品规格
     */
    @ExcelProperty(value = "商品规格", index = 4)
    private String unit;

    /**
     * 总库存
     */
    @ExcelProperty(value = "总库存", index = 5)
    private Integer inventory;

    /**
     * 实际销售量
     */
    @ExcelProperty(value = "实际销售量", index = 6)
    private Integer sold;

    /**
     * 剩余库存
     */
    @ExcelProperty(value = "剩余库存", index = 7)
    private Integer surplusInventory;

    /**
     * 销售状态
     */
    @ExcelProperty(value = "销售状态", index = 8)
    private Integer state;

    /**
     * 添加时间
     */
    @ExcelProperty(value = "添加时间", index = 9)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
    private Date addTime;

    /**
     * 推广
     */
    @ExcelProperty(value = "推广", index = 10)
    private Boolean promotion;

    /**
     * 门店编号
     */
    private Long shopId;
}
